const controller = require('../controllers/test')
const router = require('koa-router')()
const auth = require('../middleware/auth')
// 发表评论需要权限 accessToken
// auth 中间件 抽离鉴权的功能  middlewares
// 1. accesstoken -> json uid
// 2.任务继续交给控制器 next
// 3. 拿到uid 
router.post('/comment',auth, controller.comment)
module.exports = router.routes()